<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>简单的文本输出</title>
</head>
<body>

    <script src="../jQuery/jquery-1.11.1.min.js" type="text/javascript"></script>
    <script src="../brush.js" type="text/javascript"></script>
    <script type="text/javascript">
        var source = "{{data.a}} + {{data.b}} = {{data.a+data.b}}";
        var data = {
            a : 1,
            b : 2
        };
        document.getElementsByTagName('body')[0].innerHTML = $.brush.format(source, data);
    </script>
</body>
</html>